package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 供应商产品
 * </p>
 *
 * @author sy
 * @since 2023-08-16
 */
@Getter
@Setter
@TableName("dragon_vendor_products")
public class VendorProducts implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 产品名称
     */
    private String name;

    /**
     * 单位
     */
    private Integer unit;

    /**
     * 单价
     */
    private BigDecimal onePrice;

    /**
     * 备注
     */
    private String remark;

    /**
     * 规格型号
     */
    private String specification;

    /**
     * 材质
     */
    private String material;

    /**
     * 单位名称
     */
    @TableField(exist = false)
    private String unitName;


}
